<#macro table_w_pager_wrapper pagerElement urlLink>
	
	<#if pagerElement.rows?size != 0>

			<#if pagerElement.showButtonsBar>
			<div class="buttons">
				<div class="button-bar">
					<span style="margin-right: 50px;">
						Total registros: <strong>${pagerElement.totalElements}</strong>.
						Viendo registros: <strong>${pagerElement.firstElement} - ${pagerElement.finalElement}</strong>.
					</span>
					
					<#list pagerElement.pagesArray as pa>
						<#if pa == pagerElement.selectedPage>
							<button class="selected" disabled="disabled">${pa}</button>
						<#else>
							<button style="cursor: pointer;" onclick="window.location.href='${urlLink}?page=${pa}'">${pa}</button>
						</#if>
					</#list>
				</div>
			</div>
			</#if>
			
			<#nested />
			
			<#if pagerElement.showButtonsBar>
			<div class="buttons">
				<div class="button-bar">
					<span style="margin-right: 50px;">
						Total registros: <strong>${pagerElement.totalElements}</strong>.
						Viendo registros: <strong>${pagerElement.firstElement} - ${pagerElement.finalElement}</strong>.
					</span>
					
					<#list pagerElement.pagesArray as pa>
						<#if pa == pagerElement.selectedPage>
							<button class="selected" disabled="disabled">${pa}</button>
						<#else>
							<button style="cursor: pointer;" onclick="window.location.href='${urlLink}?page=${pa}'">${pa}</button>
						</#if>
					</#list>
				</div>
			</div>
			</#if>
		</#if>
	</#macro>
	